projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4224cb6
)
(sort_args): Fill extra space with NULL ptrs.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 27 Sep 1998 07:11:54 +0000
(07:11 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 27 Sep 1998 07:11:54 +0000
(07:11 +0000)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 0e46953d1839952ed2cfc8fb46587970b0ac3c83..f57472d01e7c22fe691fc0ac0a09af9cfecd7edb 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-1541,6
+1541,10
@@
sort_args (argc, argv)
argv[best + i + 1] = 0;
}
+ /* If duplicate options were deleted, fill up extra space with null ptrs. */
+ while (to < argc)
+ new[to++] = 0;
+
bcopy (new, argv, sizeof (char *) * argc);
free (options);